//
//  mainTabBarViewController.m
//  jinritoutiao
//
//  Created by 汤环 on 2025/8/11.
//

#import "mainTabBarViewController.h"
#import "FirstPageViewController.h"
#import "VideoViewController.h"
#import "RecommondViewController.h"
#import "MinePageViewController.h"

@interface mainTabBarViewController ()
@property(nonatomic, strong)FirstPageViewController *firstPageViewController;
@property(nonatomic, strong)VideoViewController *videoViewController;
@property(nonatomic, strong)RecommondViewController *recommondViewController;
@property(nonatomic, strong)MinePageViewController *minePageViewController;

@end

@implementation mainTabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor clearColor];
    self.tabBar.backgroundColor = [UIColor whiteColor];
    [self setViewControllers:@[self.firstPageViewController, self.videoViewController, self.recommondViewController, self.minePageViewController]];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

-(FirstPageViewController*)firstPageViewController{
    if(!_firstPageViewController){
        _firstPageViewController = [[FirstPageViewController alloc]init];
    }
    return _firstPageViewController;
}

-(VideoViewController*)videoViewController{
    if(!_videoViewController){
        _videoViewController = [[VideoViewController alloc]init];
    }
    return _videoViewController;
}
-(RecommondViewController*)recommondViewController{
    if(!_recommondViewController){
        _recommondViewController = [[RecommondViewController alloc]init];
    }
    return _recommondViewController;
}
-(MinePageViewController*)minePageViewController{
    if(!_minePageViewController){
        _minePageViewController = [[MinePageViewController alloc]init];
    }
    return _minePageViewController;
}
@end
